home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / passwrd4.arc / PASSWRD4.DOC < prev   
Encoding:
Text File  |  1985-04-30  |  3.9 KB  |  106 lines

  1. Brief documentation on PWORD.ASM (also called PASSWRD4.ASM)
  2. by ... P. L. Olympia, Sysop SUGI SIG/M RBBS  301-963-5249
  3.  
  4. Thanks to John R. Petrocelli for sending me this program whose
  5. original author I don't know. Thanks, Mr. Anonymous.
  6.  
  7.    (*** SEE UPDATE AT END OF TEXT       02/05/85  CHANGES  J.R.P. ***)
  8.    (*** SEE UPDATE AT END OF TEXT       04/30/85  CHANGES  J.R.P. ***)
  9.  
  10. PURPOSE:
  11.  
  12.      PASSWRD4.ASM is intended to produce a device driver (PASSWRD4.SYS) that
  13. that you include in your CONFIG.SYS file. This driver will ask the user
  14. on machine startup to provide a password. The user is repeatedly asked
  15. for  the password until the correct one is given.  The user cannot get
  16. out of this with CTRL-C or CTRL-BREAK, but may warmboot with CTRL-ALT-
  17. DEL.
  18.  
  19.  
  20. INSTALLATION:
  21.  
  22.      Edit the file PASSWRD4.ASM and change the password  (set  in  the
  23. distribution program as 'plan') to something else that you can  easily
  24. remember.   I suggest that you do NOT use your wife's name as everyone
  25. else in the industry does that (don't know why but 45% of my BBS users
  26. do that for some reason). The line that needs changing is this:
  27.  
  28.      PASSWORD_STORE DB 4,'plan'
  29.                        |   |__ This is the password
  30.                        |______ This is the # of chars in the password
  31.  
  32. If  you don't use ANSI.SYS as a device driver,  you may also  want  to
  33. change  the  ESC sequence for hiding/unhiding user input in the  block
  34. called MSG_1  and MSG_2.
  35.  
  36.      Next, compile the program with ASM or MASM.
  37.           MASM passwrd4
  38.  
  39.      Then LINK it: (ignore the "no stack" message)
  40.           LINK passwrd4
  41.  
  42.      Then use EXE2BIN to convert it to a SYS file:
  43.           EXE2BIN passwrd4 passwrd4.sys
  44.  
  45.      Add this line to your CONFIG.SYS file:
  46.           DEVICE=passwrd4.sys
  47.  
  48. If you use ANSI.SYS, it should come before PASSWRD4.SYS.
  49.  
  50. That's it. Reboot and watch the fun.  Enjoy ...
  51.  
  52.  
  53. P.S. For all you budding programmers, the program is a handy tool for
  54.      learning how to set up a device driver.
  55.  
  56.  
  57.  
  58. *** UPDATE   02/05/85    JOHN R. PETROCELLI  **************************
  59.  
  60.     The driver program has been revised to allow the user to "lock"
  61. the PC via a call into the device driver's code. The address of the
  62. call is placed at interupt 66h in the table of interupt vectors.
  63.  
  64.     An routine called "LOCK.COM" may be invoked to call the password
  65. routine. This will prompt the user for the password after disabling
  66. ctrl-break. The user must enter the correct password (same as on
  67. boot up) before he may access the PC.
  68.  
  69.     The reason that the call is made into the device driver's code
  70. is so that if a password change is necessary then only the device
  71. driver must be recompiled and relinked.
  72.  
  73.     In order to prepare "LOCK.COM" ---------
  74.  
  75.      Compile the program:
  76.           MASM LOCK
  77.  
  78.      Then LINK it: (ignore the "no stack" message)
  79.           LINK LOCK
  80.  
  81.      Then use EXE2BIN to convert it to a SYS file:
  82.           EXE2BIN LOCK LOCK.COM <enter>
  83.  
  84.      Then delete the LOCK.EXE file:
  85.           ERASE LOCK.EXE <enter>
  86.  
  87.     I would appreciate any comments or suggestions. Send them to:
  88.                       JOHN R. PETROCLLI
  89.                       3090 CARMAN RD.
  90.                       SCHENECTADY, N.Y. 12303
  91.  
  92. *** UPDATE   04/30/85    JOHN R. PETROCELLI  **************************
  93.  
  94.      With PASSWRD3.SYS if the "LOCK" command was used one was able to
  95. defeat the password by pressing CTRL-C. The current version, "PASSWRD4.
  96. SYS", has taken this into account and for the "LOCK" command all CTRL
  97. style keystrokes are treated as normal keystrokes. Thus I would suggest
  98. that you do not use any keystrokes which require the CTRL key to be
  99. held down in order to enter your password.
  100.  
  101.     I would appreciate any comments or suggestions. Send them to:
  102.                       JOHN R. PETROCLLI
  103.                       3090 CARMAN RD.
  104.                       SCHENECTADY, N.Y. 12303
  105.  
  106.